﻿@model PlanetTelex.RssViewer.Models.RssViewerPart


    <legend>RSS Viewer</legend>
    <fieldset>
        @Html.LabelFor(m => m.FeedUrl, T("Feed Url"))
        @Html.TextBoxFor(m => m.FeedUrl, new { @class = "text large" })
        <span class="hint">@T("The URL of a remote RSS feed.")</span>

        @Html.LabelFor(m => m.ItemsToDisplay, T("Number of Items"))
        @Html.TextBoxFor(m => m.ItemsToDisplay, new { @class = "text small" })
        <span class="hint">@T("The number of feed items to display. If this is set to more than what the feed returns, then less than that number will be displayed.")</span>

        @Html.LabelFor(m => m.CacheDuration, T("Cache Duration"))
        @Html.TextBoxFor(m => m.CacheDuration, new { @class = "text small" })
        <span class="hint">@T("The number of minutes the site waits before attempting to refresh the feed from live data.")</span>

    </fieldset>
<fieldset>
    <table class="items">
        <thead>
            <tr>
                <th scope="col"></th>
                <th scope="col">@T("Title")</th>
                <th scope="col">@T("Author Byline")</th>
                <th scope="col">@T("Domain")</th>
            </tr>
        </thead>
        <tr>
            <td>Place in Header</td>
            <td>@Html.CheckBoxFor(model => model.ShowTitleInHeader)</td>
            <td>@Html.CheckBoxFor(model => model.ShowAuthorInHeader)</td>
            <td>@Html.CheckBoxFor(model => model.ShowDomainInHeader)</td>
        </tr>
        <tr>
            <td>Place in Footer</td>
            <td>@Html.CheckBoxFor(model => model.ShowTitleInFooter)</td>
            <td>@Html.CheckBoxFor(model => model.ShowAuthorInFooter)</td>
            <td>@Html.CheckBoxFor(model => model.ShowDomainInFooter)</td>
        </tr>
    </table>
    @Html.EditorFor(m => m.LinkTitle)
    <label class="forcheckbox" for="@Html.FieldIdFor(m => m.LinkTitle)">@T("Link Title")</label>
    <span class="hint forcheckbox">@T("Link the title back to the original article.")</span>
    @Html.EditorFor(m => m.LinkDomain)
    <label class="forcheckbox" for="@Html.FieldIdFor(m => m.LinkDomain)">@T("Link Domian")</label>
    <span class="hint forcheckbox">@T("Make the domian a link.")</span>
</fieldset>
